Method and System for Fast, Generic, Online and Offline, Multi-Source Text Analysis and Visualization

ABSTRACT

Methods and systems for text data analysis and visualization enable a user to specify a set of text data sources and visualize the content of the text data sources in an overview of salient features in the form of a network of words. A user may focus on one or more words to provide a visualization of connections specific to the focused word(s). The visualization may include clustering of relevant concepts within the network of words. Upon selection of a word, the context thereof, e.g., links to articles where the word appears, may be provided to the user. Analyzing may include textual statistical correlation models for assigning weights to words and links between words. Displaying the network of words may include a force-based network layout algorithm. Extracting clusters for display may include identifying “communities of words” as if the network of words was a social network.

INCORPORATION BY REFERENCE

The present application incorporates by reference the commonly-owned U.S. patent application Ser. No. 12/023,693, filed on Jan. 31, 2008, entitled “Method and System for Fast, Generic, Online and Offline, Multi-Source Text Analysis and Visualization”; and U.S. Provisional Patent Application Ser. No. 60/887,710, filed on Feb. 1, 2007, entitled “Method and System for Fast, Generic, Online and Offline, Multi-Source Text Analysis and Visualization.”

FIELD

This disclosure relates to a method and system that enables the user of a computational or communications device such as a computer, a smart phone, a personal digital assistant or any similar device, to visualize and analyze structured or unstructured text data from one or multiple sources.

BACKGROUND

Users of computational devices such as computers, smart phones, personal digital assistants and the like may have access to very large quantities of data. A small fraction of the data may reside on the device itself while the vast majority of the data may be stored in databases and/or may be accessible via means of communications such as the Internet, or other wired or wireless networks capable of transmitting data.

Search engines have made the discovery and retrieval of useful and relevant data a little bit easier, but often cannot help users make sense of the data. Search results may include results that do not relate to the user's search, making the search experience sometimes overwhelming. There is therefore a need for a method and system to analyze data quickly and display its essence in a succinct but holistic manner that highlights important themes, topics or concepts in the data and how they might relate. Such a method may aid the user in making sense of data.

Text mining and analysis is a rich field of study [M. W. Berry, Survey of Text Mining: Clustering, Classification, and Retrieval, Springer, 2003]. Proposed solutions to make sense of text data may rely on combinations of statistical and rule-based methods. Many methods may be computation intensive, particularly methods that attempt to include semantics, taxonomies or ontologies into the analysis, as well as methods that require the performance of global computations such as the calculation of eigenvalues and eigenvectors for extremely large matrices. As a result such methods may be used mostly by specialists.

Another characteristic of methods that rely on semantics is their context and language dependence. There is therefore a need for a method and system that is generic enough that it can work with virtually any context and with a broad range of languages without any modification of the method.

Several methods use a network approach but may fail in their genericity, speed and ease-of-use [Carley, Kathleen. (1997) Network Text analysis: The Network Position of concepts. Text Analysis for the Social Sciences: Methods for Drawing Statistical Inferences from Texts and Transcripts, 79-100. Mahway, N J: Lawrence Erlbaum Associates; Corman S R, Kuhn T, McPhee R D, Dooley K J. Studying complex discursive systems: Centering resonance analysis of communication. Human Communication Research 2002; 28: 157-206].

SUMMARY

This disclosure relates to a method and system that enables the user of a computational or communications device such as a computer, a smart phone, a personal digital assistant or any similar device, to (1) specify one or several sources of structured or unstructured text data (for example, a file in a format that supports text, such as Word, PDF, Postscript, HTML, TXT, RTF, XML, email or any other; URL; RSS feeds; URLs returned by a search query submitted to a search engine), (2) analyze the ensemble of text formed by the specified text data source or sources, and (3) display a network of words that represents certain salient features of the specified text data source or sources.

The number of words displayed can be defined by the user.

The method and system work fast and are generic. That is, they work with any text in any written language that has words, or whose text can be tokenized into word-like elements, and they work in any context, i.e., for a medical report or for the news of the day.

While the performance of the method and system may vary as a function of the specific set of text data sources, the method and system produce a useful view of the key concepts in the text and how they relate to one another. They can be used by anyone wishing to analyze a document (for example, a Senate report, a book or a set of articles), a website, news, email or other textual material, to obtain a fast global overview of the data.

The method and system work in such a way that the data sources specified may reside on the computational device itself or may be accessible via communications protocols, or a combination of both, thereby seamlessly integrating the user's offline and online universes. By right-clicking on any word in the displayed word network (or taking an equivalent defined action), the user has access to all occurrences of the selected word in the data sources, viewed in the various contexts in which it has appeared. By left-clicking on any word (or taking an equivalent defined action), the user can hide, delete or focus on the word; focusing on the word means that a new network of words is displayed that centers on the selected word, with all words in the new word network connecting to the selected word. The user can also decide to view clusters in the word network, each cluster corresponding to a theme or topic in the data.

The disclosed method and system for text data analysis and visualization enables a user of a computational device to specify a set of text data sources in various formats, residing on the device itself or accessible online, and visualize the content of the text data sources in a single overview of salient features in the form of a network of words. The method for text analysis uses a statistical correlation model for text that assigns weights to words and to links between words. The system for displaying a representation of the text data uses a force-based network layout algorithm. The method for extracting clusters of relevant concepts for display consists of identifying “communities of words” as if the network of words were a social network. Each cluster so identified usually represents a specific topic or sub-topic, or a set of tightly connected concepts in the text data.

One object of the invention is to enable the user to analyze one or more documents in any format that supports text data. The user specifies the location(s) of the document(s) and the systems parses and analyzes the document as described for the news reader example, and displays the salient features as a network of words using the same method.

Another object of the invention is to enable the user to perform a search and visualize the contents of the search results pages as a network of words. The user enters a search query, whereupon the system hands the query over to one or several search engines such as Alexa, Google, Yahoo, MSN, Technorati, or others, via open Application Programming Interfaces, collects the results, opens the URLs or documents returned by the search engine(s), parses the text data, analyzes it and displays the salient features a network of words using the same method.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other features and advantages of the invention(s) disclosed herein will be more fully understood by reference to the following detailed description, in conjunction with the attached drawings.

FIG. 1 is a schematic overview representation of an exemplary system architecture;

FIG. 2 illustrates an exemplary set of RSS feeds;

FIG. 3 illustrates an exemplary word network obtained from the RSS feeds of FIG. 2;

FIG. 4 illustrates an exemplary word network focused on a word;

FIG. 5 illustrates an exemplary word network focused on multiple words;

FIGS. 6A and 6B illustrate exemplary word networks with highlighted clusters;

FIG. 7A illustrates an exemplary word network and a window listing articles related to a word chosen from the word network; and

FIG. 7B additionally illustrates a browser window for a chosen article.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

To provide an overall understanding, certain illustrative embodiments will now be described; however, it will be understood by one of ordinary skill in the art that the systems and methods described herein can be adapted and modified to provide systems and methods for other suitable applications and that other additions and modifications can be made without departing from the scope of the systems and methods described herein.

Unless otherwise specified, the illustrated embodiments can be understood as providing exemplary features of varying detail of certain embodiments, and therefore, unless otherwise specified, features, components, modules, and/or aspects of the illustrations can be otherwise combined, separated, interchanged, and/or rearranged without departing from the disclosed systems or methods. Additionally, the shapes and sizes of components are also exemplary and unless otherwise specified, can be altered without affecting the disclosed systems or methods.

Making sense of large amounts of data across a wide range of offline or online sources has become a daily routine for large numbers of users who have a lot of data on their computer or other computational or communications device and also have access to an ever-increasing online world. A significant fraction of this data is textual. The disclosure herein makes it easy for anyone with a computer or other computational or communications device and access to a database or network connection to specify one or more sources of textual data (for example, a file in a format that supports text, such as Word, PDF, Postscript, HTML, TXT, RTF, XML, email or any other; URL; RSS feeds; URLs returned by a search query submitted to a search engine) and see a visual representation of the text data as a network of words that extracts salient features from the text data. The user can then view different clusters of words that represent salient topics in the text data. The user may also focus on one word, for example by mouse-clicking on it (or by a similar or analogous operation), to see which other words or clusters the selected word is connected to.

Users also my access textual data and information from a range of other computational devices, such as PDAs, smartphones or other devices yet to appear in the marketplace. The method and system described here will work with all such devices and this disclosure covers such applications.

For illustrative purposes and without limitation, the methods and systems are described herein in relation to RSS feeds as text data sources.

FIG. 1 illustrates an overview of one embodiment for the exemplary RSS feeds. In this embodiment the user has online access and wishes to have a quick overview of the world's news. The user defines a set of RSS feeds (FIG. 2) from selected news sites. The system gets the RSS feeds specified by the user, analyzes them and displays them in the aggregate as a word network (FIG. 3). It will be obvious to those skilled in the art that the same methods can be used for any other source of text data.

To display the text data from the sources the user has chosen (in the illustrative example the RSS feeds) as a network of words, the system executes the following tasks (the method):

(1) It goes through each source of text data, here each RSS feed, parses each source into words, and builds a statistical model of the words and relationships between words. To do so, it first cleans up the parsing by removing non-word characters and also all words that belong to a pre-specified list of stop-words. It then applies a bi/tri-gram extraction algorithm [Christopher D. Manning, Hinrich Schütze, Foundations of Statistical Natural Language Processing, MIT Press: 1999;] to identify multi-word expressions, that is, two or three words that always appear together. It then applies a stemming algorithm [Julie Beth Lovins (1968). Development of a stemming algorithm. Mechanical Translation and Computational Linguistics 11:22-31; Jaap Kamps, Christof Monz, Maarten de Rijke and Börkur Sigurbjörnsson (2004). Language-dependent and Language-independent Approaches to Cross-Lingual Text Retrieval. In: C. Peters, J. Gonzalo, M. Braschler and M. Kluck, eds. Comparative Evaluation of Multilingual Information Access Systems. Springer Verlag, pp. 152-165; Eija Airio (2006). Word normalization and decompounding in mono- and bilingual IR. Information Retrieval 9:249-271] to reduce variations in the occurrences of a word into a single word, e.g., car and cars will be reduced to a single word: car. It then counts the number of times each word appears in the sources. It then counts how many times any two words appear together in the same sentence, where a sentence is defined by the smallest ensemble of words between two points. Let N_(k) be the number of times word k appears in the sources, and N_(jk)=N_(kj) the number of times words j and k appear together in a sentence. Conditional frequencies are defined by F(j/k)=N_(jk)/N_(j) and F(k/j)=N_(jk)/N_(k).

The window in which two words j and k appear together does not have to be a sentence. It can be a paragraph or a window of fixed size W within a sentence or within a paragraph, a fast but semantic-less approach. We have found, however, that using the sentence as the window maintains some semantic information in the statistics without the great variability of paragraph length and its associated speed issues.

(2) Once the N_(k) and N_(jk) values have been computed for all words and pairs of words, the weights of words and links between words are computed. The weight, W_(k), of word k is defined by N_(k)/(ΣN_(j)). The weight of the link between words j and k, W_(jk), is defined by 0.5*(F(j/k)+F(k/j)). Other formulas can be used to compute W_(jk). For example, if H_(jk)=F(j/k)*F(k/j): W_(jk)=SQRT(H_(jk)); W_(jk)=Log(1+H_(jk)); W_(jk)=H_(jk)*Log(1+H_(jk)); W_(jk)=(H_(jk)+(H_(jk)/max_i H_(ki)))/2; or others. A normalizing scheme is used after all W_(k)'s and W_(jk)'s have been computed, so all values of W_(k)'s and W_(jk)'s are recomputed to be within ranges that can handled by the graph, or word network, drawing algorithm.

(3) The word network (FIG. 3) is displayed as follows. The number of words N to be displayed can be pre-specified or specified by the user. The N most frequent words are selected for display and shown on a two-dimensional display with links between them. The location of a word k in the display depends on N_(k) and all N_(jk) for words j connected to k. The display algorithm assumes that the node representing word k has a mass of W_(k) and is connected by springs to other nodes representing other words j with spring recall forces equal to W_(jk). Similar methods are known to those familiar with the field [P. Eades, A Heuristic for Graph Drawing, Congressus Numerantium 42, 149-160, 1984; P. Eades and R. Tamassia, Algorithms for Drawing Graphs: An Annotated Bibliography,” Technical Report CS-09-89, Department of Computer Science, Brown University 1989; Branke J. Dynamic graph drawing. In: Kaufmann M, Wagner D (Eds). Drawing Graphs: Methods and Models, Lecture Notes in Computer Science, Vol. 2025. Springer: Berlin, 2001; 228-246].

Once the word network has been displayed, the user can tweak it by deleting words (the display is then recalculated), moving words with the mouse (or other device or method) and/or the user can focus on a word. When the user focuses on a word, the most frequent N-1 words that are connected to the focal word are displayed together with their links to the focal word and among themselves (FIG. 4). If there are fewer than N-1 words connected to the focal word, only those words connected to the focal word are displayed. If k is the focal word, word k may be anchored at a fixed location, and the network is displayed with the same individual word weights W_(j) and with the same connection weights W_(ij) for all j's other than k but with a new set of connection weights W′_(jk)=F(k/j). These newly defined weights make words j that tend to appear with word k, which means that W′_(jk) is close to 1, lie close to k in the network layout. Another option is to set all W_(ij)'s to 0 except for W_(jk), that is, with only links to the focal word shown.

The user can also select a second focal word (FIG. 5) (and a third, a fourth, etc.) and the most frequent N-2 words connected to the first or the second focal word or both are displayed with links to the focal words and among themselves. This method enables a user to compare the word networks of two words. For example, the user can compare the word networks of Toyota and Nissan in text data coming from car-oriented blogs, thereby getting an idea of the relative perception of Toyota and Nissan in the selected blogs. For FIG. 5, the focal words are Genentech and Amgen. The same method used for displaying a single focal is replicated for two or more focal words.

The user can also add a word of his/her choosing by writing a word directly into the display. If the user chooses to add a new word, the new word is treated as if it were a focal word and a word network is created as if the new word were a focal word: the most frequent N-1 words that are connected to the new word are displayed together with their links to the new word and among themselves. If there are fewer than N-1 words connected to the new word, only those words connected to the new word are displayed.

The user can also decide to examine if news topics emerge from the text data. Strongly connected clusters of words need to be identified. To do so, the system employs an algorithm inspired by the detection of communities in social networks [M. E. J. Newman, Detecting community structure in networks, European Journal of Physics B 38 (2004), 321-330; Fast algorithm for detecting community structure in networks, Physical Review E 69 (2004)]. FIGS. 6A and 6B each illustrate a highlighted cluster in a word network.

The user can also mouse-click on (or otherwise choose) a word and see the contexts in which the word appears. For the example of RSS feeds from news sites, the user sees a window that summarizes the locations (here, URLs) where the word appears, with the title of the corresponding news item (FIG. 7A). The user can then click on (or otherwise choose) one or more of the URLs displayed, which opens a browser with the URL address (FIG. 7B). As may be understood by those in the art, the contexts displayed and the links to the context sources may depend on the text data sources specified.

The methods and systems described herein are not limited to a particular hardware or software configuration, and may find applicability in many computing or processing environments. For example, the algorithms described herein can be implemented in hardware or software, or a combination of hardware and software. The methods and systems can be implemented in one or more computer programs, where a computer program can be understood to include one or more processor executable instructions. The computer program(s) can execute on one or more programmable processors, and can be stored on one or more storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), one or more input devices, and/or one or more output devices. The processor thus can access one or more input devices to obtain input data, and can access one or more output devices to communicate output data. The input and/or output devices can include one or more of the following: Random Access Memory (RAM), Redundant Array of Independent Disks (RAID), floppy drive, CD, DVD, magnetic disk, internal hard drive, external hard drive, memory stick, or other storage device capable of being accessed by a processor as provided herein, where such aforementioned examples are not exhaustive, and are for illustration and not limitation.

The computer program(s) is preferably implemented using one or more high level procedural or object-oriented programming languages to communicate with a computer system; however, the program(s) can be implemented in assembly or machine language, if desired. The language can be compiled or interpreted.

As provided herein, the processor(s) can thus be embedded in one or more devices that can be operated independently or together in a networked environment, where the network can include, for example, a Local Area Network (LAN), wide area network (WAN), and/or can include an intranet and/or the internet and/or another network. The network(s) can be wired or wireless or a combination thereof and can use one or more communications protocols to facilitate communications between the different processors. The processors can be configured for distributed processing and can utilize, in some embodiments, a client-server model as needed. Accordingly, the methods and systems can utilize multiple processors and/or processor devices, and the processor instructions can be divided amongst such single or multiple processor/devices.

The device(s) or computer systems that integrate with the processor(s) can include, for example, a personal computer(s), workstation (e.g., Sun, HP), personal digital assistant (PDA), handheld device such as cellular telephone, laptop, handheld, or another device capable of being integrated with a processor(s) that can operate as provided herein. Accordingly, the devices provided herein are not exhaustive and are provided for illustration and not limitation.

References to “a processor” or “the processor” can be understood to include one or more processors that can communicate in a stand-alone and/or a distributed environment(s), and can thus can be configured to communicate via wired or wireless communications with other processors, where such one or more processor can be configured to operate on one or more processor-controlled devices that can be similar or different devices. Furthermore, references to memory, unless otherwise specified, can include one or more processor-readable and accessible memory elements and/or components that can be internal to the processor-controlled device, external to the processor-controlled device, and can be accessed via a wired or wireless network using a variety of communications protocols, and unless otherwise specified, can be arranged to include a combination of external and internal memory devices, where such memory can be contiguous and/or partitioned based on the application. Accordingly, references to a database can be understood to include one or more memory associations, where such references can include commercially available database products (e.g., SQL, Informix, Oracle) and also proprietary databases, and may also include other structures for associating memory such as links, queues, graphs, trees, with such structures provided for illustration and not limitation.

References to a network, unless provided otherwise, can include one or more intranets and/or the internet.

Although the methods and systems have been described relative to specific embodiments thereof, they are not so limited. Obviously many modifications and variations may become apparent in light of the above teachings and many additional changes in the details, materials, and arrangement of parts, herein described and illustrated, may be made by those skilled in the art. 

1. In a computer system having at least one user interface including at least one output device and at least one input device, a method comprising: a) receiving from a user through at least one input device an identification of at least one text source; b) from each said identified text source, retrieving at least one text passage; c) for each said retrieved text passage, parsing the said passage into words, identifying multi-word expressions in the said passage and applying a stemming algorithm to the said passage; d) for each word from the said text passages, determining a number of times the said word appears in the said passages; and e) causing to be displayed on an output device a predetermined number of words from the said text passages, wherein distances between the said predetermined number of words in a display on the said output device are determined at least in part by a word weight for each said displayed word and by a link weight for each pair of said displayed words, and wherein the word weight for each said displayed word is determined at least in part by a number of times the said word appears in the said passages; and wherein the link weight for each said pair of said displayed words is determined at least in part by the number of times each said word appears in the said passages and by a number of times the said word pair appears in a same window in the said passages.
 2. In the computer system of claim 1, the method, further comprising, for each said retrieved text passage, removing at least one stop word from the said passage.
 3. In the computer system of claim 1, the method, wherein the said same window is a sentence.
 4. In the computer system of claim 1, the method, wherein the said same window is a paragraph.
 5. In the computer system of claim 1, the method, further comprising receiving the said predetermined number from a user through at least one input device.
 6. In the computer system of claim 1, the method, further comprising f) receiving from a user an instruction to delete at least one word from the said display; and g) causing to be displayed on an output device the predetermined number of words from the said text passages without the at least one word which the said user instructed to be deleted; wherein distances between the said displayed words are determined at least in part by the word weight for each said displayed word and by the link weight for each pair of said displayed words, and wherein the word weight for each said displayed word is determined at least in part by a number of times the said word appears in the said passages; and wherein the link weight for each said pair of said displayed words is determined at least in part by the number of times each said word appears in the said passages and by a number of times the said word pair appears in a same window in the said passages.
 7. A computer-readable medium having computer-readable instructions stored thereon which, as a result of being executed in a computer system having at least one user interface including at least one output device and at least one input device, instruct the computer system to perform a method, comprising: a) receiving from a user through at least one input device an identification of at least one text source; b) from each said identified text source, retrieving at least one text passage; c) for each said retrieved text passage, parsing the said passage into words, identifying multi-word expressions in the said passage and applying a stemming algorithm to the said passage; d) for each word from the said text passages, determining a number of times the said word appears in the said passages; and e) causing to be displayed on an output device a predetermined number of words from the said text passages, wherein distances between the said predetermined number of words in a display on the said output device are determined at least in part by a word weight for each said displayed word and by a link weight for each pair of said displayed words, and wherein the word weight for each said displayed word is determined at least in part by a number of times the said word appears in the said passages; and wherein the link weight for each said pair of said displayed words is determined at least in part by the number of times each said word appears in the said passages and by a number of times the said word pair appears in a same window in the said passages.
 8. The computer-readable medium of claim 7, wherein the said instructions instruct the said computer system to perform the said method, further comprising, for each said retrieved text passage, removing at least one stop word from the said passage.
 9. The computer-readable medium of claim 7, wherein the said same window is a sentence.
 10. The computer-readable medium of claim 7, wherein the said same window is a paragraph.
 11. The computer-readable medium of claim 7, wherein the said instructions instruct the said computer system to perform the said method, further comprising, receiving the said predetermined number from a user through at least one input device.
 12. The computer-readable medium of claim 7, wherein the said instructions instruct the said computer system to perform the said method, further comprising, f) receiving from a user an instruction to delete at least one word from the said display; and g) causing to be displayed on an output device the predetermined number of words from the said text passages without the at least one word which the said user instructed to be deleted; wherein distances between the said displayed words are determined at least in part by the word weight for each said displayed word and by the link weight for each pair of said displayed words, and wherein the word weight for each said displayed word is determined at least in part by a number of times the said word appears in the said passages; and wherein the link weight for each said pair of said displayed words is determined at least in part by the number of times each said word appears in the said passages and by a number of times the said word pair appears in a same window in the said passages. 